<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: fsm_sii.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fsm__sii_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">fsm_sii.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>EtherCAT slave information interface FSM.  
<a href="#details">More...</a></p>

<p><a href="fsm__sii_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a19313c5c625a9bd6a3181bc7ab427ab8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#a19313c5c625a9bd6a3181bc7ab427ab8">SII_TIMEOUT</a>&#160;&#160;&#160;20</td></tr>
<tr class="memdesc:a19313c5c625a9bd6a3181bc7ab427ab8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read/write timeout [ms].  <a href="#a19313c5c625a9bd6a3181bc7ab427ab8">More...</a><br /></td></tr>
<tr class="separator:a19313c5c625a9bd6a3181bc7ab427ab8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf562911fbe9d8d473390f97c2a185e1"><td class="memItemLeft" align="right" valign="top"><a id="aaf562911fbe9d8d473390f97c2a185e1"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#aaf562911fbe9d8d473390f97c2a185e1">SII_INHIBIT</a>&#160;&#160;&#160;5</td></tr>
<tr class="memdesc:aaf562911fbe9d8d473390f97c2a185e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Time before evaluating answer at writing [ms]. <br /></td></tr>
<tr class="separator:aaf562911fbe9d8d473390f97c2a185e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa962238df8a96fb72fb83c321d91411d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#aa962238df8a96fb72fb83c321d91411d">ec_fsm_sii_state_start_reading</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:aa962238df8a96fb72fb83c321d91411d"><td class="mdescLeft">&#160;</td><td class="mdescRight">SII state: START READING.  <a href="#aa962238df8a96fb72fb83c321d91411d">More...</a><br /></td></tr>
<tr class="separator:aa962238df8a96fb72fb83c321d91411d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a720750644f92278027d4ae02925b277b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#a720750644f92278027d4ae02925b277b">ec_fsm_sii_state_read_check</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:a720750644f92278027d4ae02925b277b"><td class="mdescLeft">&#160;</td><td class="mdescRight">SII state: READ CHECK.  <a href="#a720750644f92278027d4ae02925b277b">More...</a><br /></td></tr>
<tr class="separator:a720750644f92278027d4ae02925b277b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4212d034457619e005ac2d3752634a0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#ac4212d034457619e005ac2d3752634a0">ec_fsm_sii_state_read_fetch</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:ac4212d034457619e005ac2d3752634a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">SII state: READ FETCH.  <a href="#ac4212d034457619e005ac2d3752634a0">More...</a><br /></td></tr>
<tr class="separator:ac4212d034457619e005ac2d3752634a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace13a2908e3966675307ff47e9c77c99"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#ace13a2908e3966675307ff47e9c77c99">ec_fsm_sii_state_start_writing</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:ace13a2908e3966675307ff47e9c77c99"><td class="mdescLeft">&#160;</td><td class="mdescRight">SII state: START WRITING.  <a href="#ace13a2908e3966675307ff47e9c77c99">More...</a><br /></td></tr>
<tr class="separator:ace13a2908e3966675307ff47e9c77c99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaee69e244c350ef77c397fda8e9bf3f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#aaee69e244c350ef77c397fda8e9bf3f8">ec_fsm_sii_state_write_check</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:aaee69e244c350ef77c397fda8e9bf3f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">SII state: WRITE CHECK.  <a href="#aaee69e244c350ef77c397fda8e9bf3f8">More...</a><br /></td></tr>
<tr class="separator:aaee69e244c350ef77c397fda8e9bf3f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3898542c0741239514008916c797e53e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#a3898542c0741239514008916c797e53e">ec_fsm_sii_state_write_check2</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:a3898542c0741239514008916c797e53e"><td class="mdescLeft">&#160;</td><td class="mdescRight">SII state: WRITE CHECK 2.  <a href="#a3898542c0741239514008916c797e53e">More...</a><br /></td></tr>
<tr class="separator:a3898542c0741239514008916c797e53e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a688ff966f39ddf066c3552fb8d3e16c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#a688ff966f39ddf066c3552fb8d3e16c8">ec_fsm_sii_state_end</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:a688ff966f39ddf066c3552fb8d3e16c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">State: END.  <a href="#a688ff966f39ddf066c3552fb8d3e16c8">More...</a><br /></td></tr>
<tr class="separator:a688ff966f39ddf066c3552fb8d3e16c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af706e0c6d40417a78534ba79c25707b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#af706e0c6d40417a78534ba79c25707b2">ec_fsm_sii_state_error</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:af706e0c6d40417a78534ba79c25707b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">State: ERROR.  <a href="#af706e0c6d40417a78534ba79c25707b2">More...</a><br /></td></tr>
<tr class="separator:af706e0c6d40417a78534ba79c25707b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add8c9461798f2a96a05ae57c93885890"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#add8c9461798f2a96a05ae57c93885890">ec_fsm_sii_init</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm, <a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *datagram)</td></tr>
<tr class="memdesc:add8c9461798f2a96a05ae57c93885890"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#add8c9461798f2a96a05ae57c93885890">More...</a><br /></td></tr>
<tr class="separator:add8c9461798f2a96a05ae57c93885890"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dbd5f2a2815c2b0852cd5272279f8c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#a6dbd5f2a2815c2b0852cd5272279f8c6">ec_fsm_sii_clear</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:a6dbd5f2a2815c2b0852cd5272279f8c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a6dbd5f2a2815c2b0852cd5272279f8c6">More...</a><br /></td></tr>
<tr class="separator:a6dbd5f2a2815c2b0852cd5272279f8c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa20332ff7b8eb1f4510ebb9bfdbdef81"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#aa20332ff7b8eb1f4510ebb9bfdbdef81">ec_fsm_sii_read</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm, <a class="el" href="globals_8h.html#a8d9ffff7dbe1babaa4786a63f2860d57">ec_slave_t</a> *slave, uint16_t word_offset, <a class="el" href="fsm__sii_8h.html#ab31614ec8c650bb9ad5c8370f43113b9">ec_fsm_sii_addressing_t</a> mode)</td></tr>
<tr class="memdesc:aa20332ff7b8eb1f4510ebb9bfdbdef81"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the SII read state machine.  <a href="#aa20332ff7b8eb1f4510ebb9bfdbdef81">More...</a><br /></td></tr>
<tr class="separator:aa20332ff7b8eb1f4510ebb9bfdbdef81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb460a43b75a53c0d26b9058d685fee3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#adb460a43b75a53c0d26b9058d685fee3">ec_fsm_sii_write</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm, <a class="el" href="globals_8h.html#a8d9ffff7dbe1babaa4786a63f2860d57">ec_slave_t</a> *slave, uint16_t word_offset, const uint16_t *value, <a class="el" href="fsm__sii_8h.html#ab31614ec8c650bb9ad5c8370f43113b9">ec_fsm_sii_addressing_t</a> mode)</td></tr>
<tr class="memdesc:adb460a43b75a53c0d26b9058d685fee3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the SII write state machine.  <a href="#adb460a43b75a53c0d26b9058d685fee3">More...</a><br /></td></tr>
<tr class="separator:adb460a43b75a53c0d26b9058d685fee3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83b1d58217c9c46ee1202b6bee1cabab"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#a83b1d58217c9c46ee1202b6bee1cabab">ec_fsm_sii_exec</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:a83b1d58217c9c46ee1202b6bee1cabab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the SII state machine.  <a href="#a83b1d58217c9c46ee1202b6bee1cabab">More...</a><br /></td></tr>
<tr class="separator:a83b1d58217c9c46ee1202b6bee1cabab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2408e4df539edddead44761dbe32ef45"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="fsm__sii_8c.html#a2408e4df539edddead44761dbe32ef45">ec_fsm_sii_success</a> (<a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *fsm)</td></tr>
<tr class="memdesc:a2408e4df539edddead44761dbe32ef45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns, if the master startup state machine terminated with success.  <a href="#a2408e4df539edddead44761dbe32ef45">More...</a><br /></td></tr>
<tr class="separator:a2408e4df539edddead44761dbe32ef45"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>EtherCAT slave information interface FSM. </p>

<p class="definition">Definition in file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a19313c5c625a9bd6a3181bc7ab427ab8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19313c5c625a9bd6a3181bc7ab427ab8">&#9670;&nbsp;</a></span>SII_TIMEOUT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SII_TIMEOUT&#160;&#160;&#160;20</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read/write timeout [ms]. </p>
<p>Used to calculate timeouts bsed on the jiffies counter.</p>
<dl class="section attention"><dt>Attention</dt><dd>Must be more than 10 to avoid problems on kernels that run with a timer interupt frequency of 100 Hz. </dd></dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00049">49</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="aa962238df8a96fb72fb83c321d91411d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa962238df8a96fb72fb83c321d91411d">&#9670;&nbsp;</a></span>ec_fsm_sii_state_start_reading()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_state_start_reading </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SII state: START READING. </p>
<p>Starts reading the slave information interface. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00166">166</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="a720750644f92278027d4ae02925b277b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a720750644f92278027d4ae02925b277b">&#9670;&nbsp;</a></span>ec_fsm_sii_state_read_check()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_state_read_check </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SII state: READ CHECK. </p>
<p>Checks, if the SII-read-datagram has been sent and issues a fetch datagram. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00203">203</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="ac4212d034457619e005ac2d3752634a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4212d034457619e005ac2d3752634a0">&#9670;&nbsp;</a></span>ec_fsm_sii_state_read_fetch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_state_read_fetch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SII state: READ FETCH. </p>
<p>Fetches the result of an SII-read datagram. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00250">250</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="ace13a2908e3966675307ff47e9c77c99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace13a2908e3966675307ff47e9c77c99">&#9670;&nbsp;</a></span>ec_fsm_sii_state_start_writing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_state_start_writing </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SII state: START WRITING. </p>
<p>Starts writing a word through the slave information interface. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00320">320</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="aaee69e244c350ef77c397fda8e9bf3f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaee69e244c350ef77c397fda8e9bf3f8">&#9670;&nbsp;</a></span>ec_fsm_sii_state_write_check()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_state_write_check </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SII state: WRITE CHECK. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00350">350</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="a3898542c0741239514008916c797e53e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3898542c0741239514008916c797e53e">&#9670;&nbsp;</a></span>ec_fsm_sii_state_write_check2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_state_write_check2 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SII state: WRITE CHECK 2. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00389">389</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="a688ff966f39ddf066c3552fb8d3e16c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a688ff966f39ddf066c3552fb8d3e16c8">&#9670;&nbsp;</a></span>ec_fsm_sii_state_end()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_state_end </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>State: END. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00484">484</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="af706e0c6d40417a78534ba79c25707b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af706e0c6d40417a78534ba79c25707b2">&#9670;&nbsp;</a></span>ec_fsm_sii_state_error()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_state_error </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>State: ERROR. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00472">472</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="add8c9461798f2a96a05ae57c93885890"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add8c9461798f2a96a05ae57c93885890">&#9670;&nbsp;</a></span>ec_fsm_sii_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structec__datagram__t.html">ec_datagram_t</a> *&#160;</td>
          <td class="paramname"><em>datagram</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">datagram</td><td>datagram structure to use </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00074">74</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="a6dbd5f2a2815c2b0852cd5272279f8c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dbd5f2a2815c2b0852cd5272279f8c6">&#9670;&nbsp;</a></span>ec_fsm_sii_clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00088">88</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="aa20332ff7b8eb1f4510ebb9bfdbdef81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa20332ff7b8eb1f4510ebb9bfdbdef81">&#9670;&nbsp;</a></span>ec_fsm_sii_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="globals_8h.html#a8d9ffff7dbe1babaa4786a63f2860d57">ec_slave_t</a> *&#160;</td>
          <td class="paramname"><em>slave</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>word_offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#ab31614ec8c650bb9ad5c8370f43113b9">ec_fsm_sii_addressing_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the SII read state machine. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">slave</td><td>slave to read from </td></tr>
    <tr><td class="paramname">word_offset</td><td>offset to read from </td></tr>
    <tr><td class="paramname">mode</td><td>addressing scheme </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00098">98</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="adb460a43b75a53c0d26b9058d685fee3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb460a43b75a53c0d26b9058d685fee3">&#9670;&nbsp;</a></span>ec_fsm_sii_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_fsm_sii_write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="globals_8h.html#a8d9ffff7dbe1babaa4786a63f2860d57">ec_slave_t</a> *&#160;</td>
          <td class="paramname"><em>slave</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>word_offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint16_t *&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#ab31614ec8c650bb9ad5c8370f43113b9">ec_fsm_sii_addressing_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the SII write state machine. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
    <tr><td class="paramname">slave</td><td>slave to read from </td></tr>
    <tr><td class="paramname">word_offset</td><td>offset to read from </td></tr>
    <tr><td class="paramname">value</td><td>pointer to 2 bytes of data </td></tr>
    <tr><td class="paramname">mode</td><td>addressing scheme </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00116">116</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="a83b1d58217c9c46ee1202b6bee1cabab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83b1d58217c9c46ee1202b6bee1cabab">&#9670;&nbsp;</a></span>ec_fsm_sii_exec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_sii_exec </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Executes the SII state machine. </p>
<dl class="section return"><dt>Returns</dt><dd>false, if the state machine has terminated </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00137">137</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
<a id="a2408e4df539edddead44761dbe32ef45"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2408e4df539edddead44761dbe32ef45">&#9670;&nbsp;</a></span>ec_fsm_sii_success()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_fsm_sii_success </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="fsm__sii_8h.html#a6b596f5c1a4212b443a4429b2baed8f2">ec_fsm_sii_t</a> *&#160;</td>
          <td class="paramname"><em>fsm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns, if the master startup state machine terminated with success. </p>
<dl class="section return"><dt>Returns</dt><dd>non-zero if successful. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsm</td><td>Finite state machine </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="fsm__sii_8c_source.html#l00152">152</a> of file <a class="el" href="fsm__sii_8c_source.html">fsm_sii.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="fsm__sii_8c.html">fsm_sii.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
